//
//  main.m
//  de4-15
//
//  Created by mac on 16-4-17.
//  Copyright (c) 2016年 malatang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Login.h"
#import "Restorant.h"
#import "Manager.h"
int main(int argc, const char * argv[])
{

    @autoreleasepool {
        
        // insert code here...
        NSLog(@"Hello, World!");
        Restorant * reto=[[Restorant alloc]init];
        Customer * cust=[[Customer alloc]init];
        cust.delegata=reto;
        [cust comeToretorant];
        
        Manager* man=[[Manager alloc]init];
        Login* log=[[Login alloc]init];
        log.delegata=man;
        [log getName];
 
    }
    return 0;
}

